﻿@model ProgressTracker.WebUI.Models.Task.AddNewTaskModel

<div class="modal-dialog">
    <div class="modal-content">
        <div class="modal-header">
            <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
            <h4 class="modal-title">Add New Task</h4>
        </div>
        <div class="modal-body">
            @using (Html.BeginForm("Add", "Task", FormMethod.Post, new { id = "addForm", @class = "form-horizontal" }))
            {
                <div class="form-group">
                    <div class="col-md-2 col-xs-4">@Html.LabelFor(x => x.Name)</div>
                    <div class="col-md-10 col-sm-10 col-xs-12">@Html.TextBoxFor(x => x.Name, new { required = "required", @class="form-control" })</div>
                </div>
                <div class="form-group">
                    <div class="col-md-2 col-xs-4">@Html.LabelFor(x => x.Description)</div>
                    <div class="col-md-10 col-sm-10 col-xs-12">@Html.TextBoxFor(x => x.Description, new { required = "required", @class = "form-control" })</div>
                </div>
                
                <div class="form-group">
                    <div class="col-xs-12">
                        <button class="btn btn-primary">Add New Task</button>
                    </div>
                </div>
            }
        </div>
    </div>
</div>
<script src="~/Scripts/Task/Add.js"></script>